/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hijh.uniandes.ecos.runt.persistence;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 *
 * @author Usuario
 */
public class RNLJPAManager {

    private static EntityManagerFactory emf = null;
    
    private RNLJPAManager(){}
    /*
     * Lazily acquire the EntityManagerFactory and cache it.
     */
     public static EntityManagerFactory getEMF (){
        if (emf == null){
            emf = Persistence.createEntityManagerFactory("RUNT", new java.util.HashMap());
        }
        return emf;
    }
    
}
